/**
 * @name: loginApi
 * @author: XU>.<CHEN
 * @date: 2023-01-28 15:31
 * @description：loginApi
 * @update: 2023-01-28 15:31
 */

import { handleGet, handlePost } from '@/utils/axios'
import { LoginVo } from '@/api/modules/type'

const baseUrl: string = '/nodeApi/user'

// node登陆
export const NodeLogin = (params: LoginVo) => handlePost(`${baseUrl}/login`, params)
// 获取用户权限
export const GetUserAuth = () => handleGet(`${baseUrl}/getRouteAuth`)
// 获取登录用户信息
export const GetCurrent = () => handleGet(`${baseUrl}/getCurrent`)
// 注册用户
export const Register = (params: LoginVo) => handlePost(`${baseUrl}/register`, params)
